﻿@model TestOnlineProject.Models.Entities.Feedback
@{
    ViewBag.Title = "Index";
}
@{
    if (ViewBag.Msg != null)
    {
    <script>        alert("@ViewBag.Msg")</script>
    }
}
<div class="site_map">
    @Html.ActionLink("Home", "Index", "Home") / Feedback
</div>
<br />
<span class="require_info">(*) is required.</span>
@using (Html.BeginForm("Create", "Feedback", FormMethod.Post))
{
    <table class="table table-bordered">
        <tr>
            <td style="width: 150px; text-align: right">
                <span>Title&nbsp;(*)</span>
            </td>
            <td>
                <span class="errorMsg">@Html.ValidationMessageFor(model => model.Title)</span>
                @Html.TextBoxFor(model => model.Title, new { style = "width:300px" })
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <span>Content&nbsp;(*)</span>
            </td>
            <td>
                <span class="errorMsg">@Html.ValidationMessageFor(model => model.Content)</span>
                @Html.TextAreaFor(model => model.Content, new { style = "width:500px", rows = "5" })
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <button type="submit" class="btn" style="width: 80px">
                    Send</button>
                @Html.ActionLink("Reset", "Create", "Feedback", null, new { style = "width:54px", @class = "btn" })
                @Html.ActionLink("Cancel", "Index", "Home", null, new { style = "width:54px", @class = "btn" })
            </td>
        </tr>
    </table>
}
